package org.qingke.mail.common;

import java.io.Serializable;

/**
 * 基础响应对象
 * @author JAVA
 *
 */
public class Response implements Serializable {
	
	private static final long serialVersionUID = 1L;
	// 响应状态,true表示请求服务成功
	protected boolean state;
	// 响应消息
	protected String message;
	// 响应数据
	protected Object data;
	//响应token
	protected String token;
	//重定向地址
	protected String redirectUrl;
	
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getRedirectUrl() {
		return redirectUrl;
	}
	public void setRedirectUrl(String redirectUrl) {
		this.redirectUrl = redirectUrl;
	}
	public boolean isState() {
		return state;
	}
	public void setState(boolean state) {
		this.state = state;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	protected Response(){}
	public static Response getInstance() {
		return new Response();
	}
	@Override
	public String toString() {
		return "Response [state=" + state + ", message=" + message + ", data=" + data + ", token=" + token
				+ ", redirectUrl=" + redirectUrl + "]";
	}
   

}
